package com.xh.bussiness.teachbook.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xh.bussiness.teachbook.dao.TeachingBookTemplateMapper;
import com.xh.bussiness.teachbook.model.TeachingBookTemplate;
import com.xh.bussiness.teachbook.service.ITeachingBookTemplateService;
import com.xh.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 * @Author daiwei
 * @Description
 * @Date 2019/5/13 14:38
 **/
@Service
public class TeachingBookTemplateServiceImpl extends BaseServiceImpl<TeachingBookTemplateMapper, TeachingBookTemplate> implements ITeachingBookTemplateService {


    @Override
    public List<TeachingBookTemplate> queryTeachingBookTemplateList() {
        QueryWrapper<TeachingBookTemplate> qw = new QueryWrapper<>();
        qw.orderByAsc("order_no");
        List<TeachingBookTemplate> modules = this.selectList(qw, TeachingBookTemplate.class);
        return modules;
    }
}
